package com.spark.graphQL;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 访问：
 * http://localhost:8080/graphiql
 *
 *
 * 测试输入：
 * {
 *   pets {
 *       name
 *       type
 *       age
 *   }
 *   animals
 * }
 *
 *后面加了个可传参数的，上面的可能就会报错啦，
 * {
 *   pets(age:12) {
 *     name
 *     age
 *   }
 * }
 *
 *
 * https://zhuanlan.zhihu.com/p/79999457
 */
@SpringBootApplication
public class GraphQlApplication {

	public static void main(String[] args) {
		SpringApplication.run(GraphQlApplication.class, args);
	}

}
